<?php
class Yz_Config_Exception 
    extends Yz_Exception
{

    protected $defaultMessage = '%{cause} in %{sourceName} on line %{lineNr} char %{charNr}';

    protected $values = array( 
        'lineNr' => '',
        'charNr' => '',
        'cause' => '',
        'sourceName' => '',
    );

    public function setLineNr( $lineNr )
    {
        $this->values['lineNr'] = $lineNr;
        return $this;
    }
    
    public function setCharNr( $charNr )
    {
        $this->values['charNr'] = $charNr;
        return $this;
    }
    
    public function setCause( $cause )
    {
        $this->values['cause'] = $cause;
        return $this;
    }
    
    public function setSourceName( $sourceName )
    {
        $this->values['sourceName'] = $sourceName;
        return $this;
    }
    
} // class

